<?PHP
 session_start();
 include("admin/include/db.php");
 include("includes/function.php");
 
$timezone = new DateTimeZone("Asia/Kolkata" );
$date = new DateTime();
$date->setTimezone($timezone );
$indiaZone = $date->format( 'H:i:s A  /  D, M jS, Y' );

$timezone = new DateTimeZone('America/Los_Angeles' );
$date = new DateTime();
$date->setTimezone($timezone );
$losAngles = $date->format( 'H:i:s A  /  D, M jS, Y' );

$timezone = new DateTimeZone('America/Toronto' );
$date = new DateTime();
$date->setTimezone($timezone );
$toronnto = $date->format( 'H:i:s A  /  D, M jS, Y' );	

$timezone = new DateTimeZone('America/Mexico_City' );
$date = new DateTime();
$date->setTimezone($timezone );
$mexico =  $date->format( 'H:i:s A  /  D, M jS, Y' );	

$timezone = new DateTimeZone('America/Tijuana' );
$date = new DateTime();
$date->setTimezone($timezone );
$Tijuana = $date->format( 'H:i:s A  /  D, M jS, Y' );		

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=TITLE_WEBSITE?></title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<center>
<div style="background:#179cc1; height:3px">&nbsp;</div>
<div style="width:990px;" align="center">
		<div id="header">
		<?php
    		include("includes/header.php");
   		?>
        </div>
        <div style="margin-top:23px; margin-bottom:21px" align="center" >
    	<?php
									$sqlAdvertise = mysql_query("SELECT * FROM software_advertise 
																	WHERE 
																		banner_status = 'Y' AND banner = 2
																		ORDER BY RAND()
																		");
									$resAdvertise = mysql_fetch_array($sqlAdvertise);
							
									$imgPath  = 'admin/upload_images/'.$resAdvertise["banner_image"];
									
								?>
								<a href="http://<?=$resAdvertise["banner_url"]?>" target="_blank" ><img border="0" src="<?=$imgPath?>"  width="729" height="86" /></a>
    </div>
    <div style="margin-top:20px;">
    	<form id="form_register" name="form_register" method="post" onsubmit="return register_validation()" >
        <div style="float:left; width:65%;" >
        	<div align="left" >
            	<span class="headingOrange" ><strong>Time Zone</strong></span>
            </div>
            <div class="text1"  align="left" style=" padding-top:18px;">
            <div  >	
                <div style="float:left; width:33%; " class="text" align="center" >
                	<img src="images/Clock.png" width="175"  /><br/><span class="headingOrange1" >India</span> <br/><?=$indiaZone?>
                </div>
                <div style="float:left; width:33%; " class="text" align="center" ><img src="images/Clock.png" width="175"  />
                	<br/><span class="headingOrange1" >Los Anglos</span> <br/><?=$losAngles?>
                </div>
                <div style="float:left; width:30%; " class="text" align="center" ><img src="images/Clock.png" width="175"  />
                	<br/><span class="headingOrange1" >Toronnto </span> <br/><?=$toronnto ?>
                </div>
	            <div style=" clear:both" ></div>
            </div>
            <div style=" margin-top:10px;" >	
                                <div style="float:left; width:50%; " class="text" align="center" >
                	<img src="images/Clock.png" width="175"  />
                    <br/><span class="headingOrange1" >Mexico </span> <br/><?=$mexico ?>
                    
                </div>
                <div style="float:left; width:50%; " class="text" align="center" ><img src="images/Clock.png" width="175"  />
                    <br/><span class="headingOrange1" >Tijuana </span> <br/><?=$Tijuana ?></div>
             
	            <div style=" clear:both" ></div>
            </div>
            </div>
        </div>
        </form>
        <div style="float:left" align="right">
        	<?php
									$sqlAdvertise = mysql_query("SELECT * FROM software_advertise 
																	WHERE 
																		banner_status = 'Y' AND banner = 3
																		ORDER BY RAND()
																		");
									$resAdvertise = mysql_fetch_array($sqlAdvertise);
							
									$imgPath  = 'admin/upload_images/'.$resAdvertise["banner_image"];
									
								?>
								<!--<a href="http://<?=$resAdvertise["banner_url"]?>" target="_blank" ><img border="0" src="<?=$imgPath?>"   /></a>-->
        </div>
      <div style="clear:both"></div>
    </div>
    
    <div style="margin-top:23px; margin-bottom:21px" align="center" >
    	<?php
									$sqlAdvertise = mysql_query("SELECT * FROM software_advertise 
																	WHERE 
																		banner_status = 'Y' AND banner = 2
																		ORDER BY RAND()
																		");
									$resAdvertise = mysql_fetch_array($sqlAdvertise);
							
									$imgPath  = 'admin/upload_images/'.$resAdvertise["banner_image"];
									
								?>
								
    </div>
   </div>
   <div id="footer">
  		<?php include("includes/footer.php")?>
   </div>
</div>
	</div>
</center>
</body>
</html>
